package com.hins;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class Any {
    public Any() {
    }
    public static void main(String[] args)throws Exception  {
        InputStream systemResourceAsStream = ClassLoader.getSystemResourceAsStream("db.properties");
        System.out.println(systemResourceAsStream);
        BufferedReader reader = new BufferedReader(new InputStreamReader(systemResourceAsStream));
        Properties properties = new Properties();
        properties.load(reader);
        System.out.println(properties.getProperty("name"));
        System.out.println(properties.getProperty("age"));
    }
}
